/**
 * 
 */
package com.youxin.cpcenter.bean.member;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.youxin.foundation.utils.StringUtils;

/**
 * @description 
 * @author yingde.cao
 * @date 2017年12月10日
 * @version 1.0
 */
@JsonInclude( JsonInclude.Include.NON_NULL)
public class MemberInfo {
	 /**  */
	@JsonProperty("member_id")
    private Long memberId;

    
    /** 会员唯一id */
	@JsonIgnore
    private String uid;

    /** 用户名 */
    private String username;

    /** 真实姓名 */
    private String realname;
    /** 微信昵称 */
    private String nickname;
    
    /** 邮箱 */
    private String email;

    /** 微信 */
    private String wx;

    /** 手机 */
    private String phone;

    /** 固定电话 */
    @JsonIgnore
    private String tel;

//    /** 备用手机 */
//    @JsonProperty("backup_phone")
//    private String backupPhone;
//
//    /** 头像 */
//    @JsonProperty("logo_url")
//    private String logoUrl;

    /** 1:男 2:女 */
    private Short sex;

    /** 职位 */
    private String position;

    /** 所在地(省，市，区) */
    private String address;
    
    /** QQ */
    @JsonIgnore
    private Long qq;
    /**
     * 会员关联企业id
     */
    @JsonProperty("ent_member_id")
    private Long entMemberId=0L;
    
    /** 企业认证id */
    @JsonProperty("ent_identify_id")
    private Long entIdentifyId=0L;
    
    /** 企业UID */
    @JsonProperty("company_uid")
    private String companyUid;
    
    /** 企业UID */
    @JsonProperty("company_name")
    private String companyName;

    /** 是否企业管理员： 0-企业普通成员 1-企业管理员 */
    @JsonProperty("enterprise_manager")
    private Short enterpriseManager=0;

    /** 企业员工通过企业版：0-未通过 1-已通过 */
    @JsonProperty("enterprise_pass")
    private Short enterprisePass=0;

    /** 企业版认证类型：0-普通 1-VIP 2-试用 */
    @JsonProperty("enterprise_identy_type")
    private Short enterpriseIdentyType=0;

    /** 企业版-成员认证状态： 0-未认证 1-已认证 2-已解除 */
    @JsonProperty("enterprise_identy_status")
    private Short enterpriseIdentyStatus=0;

    
	public Long getEntMemberId() {
		return entMemberId;
	}

	public void setEntMemberId(Long entMemberId) {
		this.entMemberId = entMemberId;
	}
	
	public Long getMemberId() {
		return memberId;
	}

	public void setMemberId(Long memberId) {
		this.memberId = memberId;
	}

	public String getUid() {
		return uid;
	}

	public void setUid(String uid) {
		this.uid = uid;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getRealname() {
		if(StringUtils.isNullOrEmpty(realname)){
			if(!StringUtils.isNullOrEmpty(phone))
			{
				return phone;
			}
			return StringUtils.isNullSetEmpty(username);
		}
		return realname;
	}

	public void setRealname(String realname) {
		this.realname = realname;
	}

	public String getNickname() {
		return nickname;
	}

	public void setNickname(String nickname) {
		this.nickname = nickname;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getWx() {
		return wx;
	}

	public void setWx(String wx) {
		this.wx = wx;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getTel() {
		return tel;
	}

	public void setTel(String tel) {
		this.tel = tel;
	}


	public Short getSex() {
		return sex;
	}

	public void setSex(Short sex) {
		this.sex = sex;
	}

	public String getPosition() {
		return position;
	}

	public void setPosition(String position) {
		this.position = position;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public Long getQq() {
		return qq;
	}

	public void setQq(Long qq) {
		this.qq = qq;
	}

	public Long getEntIdentifyId() {
		return entIdentifyId;
	}

	public void setEntIdentifyId(Long entIdentifyId) {
		this.entIdentifyId = entIdentifyId;
	}

	public String getCompanyUid() {
		return companyUid;
	}

	public void setCompanyUid(String companyUid) {
		this.companyUid = companyUid;
	}

	public String getCompanyName() {
		return companyName;
	}

	public void setCompanyName(String companyName) {
		this.companyName = companyName;
	}

	public Short getEnterpriseManager() {
		return enterpriseManager;
	}

	public void setEnterpriseManager(Short enterpriseManager) {
		this.enterpriseManager = enterpriseManager;
	}

	public Short getEnterprisePass() {
		return enterprisePass;
	}

	public void setEnterprisePass(Short enterprisePass) {
		this.enterprisePass = enterprisePass;
	}

	public Short getEnterpriseIdentyType() {
		return enterpriseIdentyType;
	}

	public void setEnterpriseIdentyType(Short enterpriseIdentyType) {
		this.enterpriseIdentyType = enterpriseIdentyType;
	}

	public Short getEnterpriseIdentyStatus() {
		return enterpriseIdentyStatus;
	}

	public void setEnterpriseIdentyStatus(Short enterpriseIdentyStatus) {
		this.enterpriseIdentyStatus = enterpriseIdentyStatus;
	}
    

}
